package com.rotsel.mh3udb.app.Extra;

import java.text.DecimalFormat;

/**
 * Created by rots on 20.02.14.
 */
public final class Formatter {
    public static String getPriceFormat(int number){
        DecimalFormat decFormat = new DecimalFormat("#,###z");
        return decFormat.format(number);
    }

    public static String[] joinForSqlIn(String[] values){
        if (values == null || values.length == 0){
            return new String[]{""};
        }
        String result = values[0];

        for (int i = 1; i < values.length; i++){
            result += ", " + values[i];
        }

        return new String[]{result};
    }
}
